<?php

/**
 * 最新评论插件
 * @author　MrHan<hcj112@1163.com>
 */
class NewComment extends AddonsController
{
    public function right()
    {
        $list = D('Comment')->getNewComment();
        if ($list) {
            $this->assign('cmlist', $list);
            $this->display('Comment');
        } else {
            return false;
        }
    }
}